package com.abou.mvc.controller.customer.product.search;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.SessionAttributes;
import com.abou.constant.product.ECategory;
import com.abou.constant.product.EProductType;
import com.abou.model.common.product.search.SearchProductsRequest;
import com.abou.mvc.controller.ControllerUtils;

/**
 * The controller for the search woman clothing products page
 * 
 * @author khalid
 */

@Controller
@RequestMapping("/customer/products/woman/clothing-woman.do")
@SessionAttributes(ControllerUtils.SEARCH_REQUEST_ATT)
public class CustomerClothesWomanSearchController extends
    ACustomerClothesSearchController {
  
  /**
   * The request mapping for search woman clothing products view
   */
  public static final String VIEW_REQUEST_MAPPING =
      "/customer/products/woman/clothing-woman.do";
  
  /**
   * The search woman clothing products view
   */
  public static final String VIEW_NAME =
      "customer/products/woman/clothing-woman";
  
  /**
   * The empty constructor
   */
  public CustomerClothesWomanSearchController() {

    super(VIEW_NAME, EProductType.CLOTHING_WOMAN);
  }
  
  /**
   * @see com.abou.mvc.controller.customer.product.search.ACustomerSearchController#createProductsRequest()
   */
  @Override
  protected SearchProductsRequest createProductsRequest() {

    SearchProductsRequest searchRequest = new SearchProductsRequest();
    searchRequest.setProductType(getProductType());
    searchRequest.setCategory(ECategory.WOMAN);
    
    return searchRequest;
  }
}
